<DIV  class="form-horizontal" >

    {if condition = "count($info['config']) >0"}
    <ul class="nav nav-tabs">
        {foreach $info['config'] as $school}
        <li {if condition="($first_school_id == $school['school_id'])"} class="active" {/if}><a href="#config_{$school['school_id']}" data-toggle="tab">{$school['school_name']}</a></li>
        {/foreach}

    </ul>
    <div id="configTabContent" class="tab-content">
        {foreach $info['config'] as $school}
        <div class="tab-pane fade {if condition="($first_school_id == $school['school_id'])"} active in {/if} " id="config_{$school['school_id']}">
        <div class="panel panel-info">
            <div class="panel-heading">
                {$school['school_name']}:
            </div>

            <div class="panel-body school_{$school['school_id']} ">
                <div class="row">
                    <div class="col-xs-12 col-sm-12">
                        {foreach $school['data'] as $classes}
                        <p>{$classes['classes_name']}:
                        </p>
                        <div class="panel-body classes_{$school['school_id']}_{$classes['classes_id']} ">
                            {foreach $classes['data'] as $data_item}
                            <p>{$data_item['name']}:</p>
                            {foreach $data_item['config'] as $config_item}
                            <div style="display: flex;align-items: center;height: 44px;">
                                <div style="margin-right: 15px;">
                                    {if condition = "$show_teacher == 1"}{$config_item['teacher_name']}{/if}  {$config_item['start']} - {$config_item['end']}&nbsp;&nbsp;选择:<input type="checkbox"  class="time_checkbox" data-school_id = "{$school['school_id']}" data-school_name = "{$school['school_name']}" data-classes_id = "{$classes['classes_id']}" data-classes_name = "{$classes['classes_name']}" data-w = "{$data_item['w']}" data-w_name = "{$data_item['name']}" data-time_text = "{$config_item['start']}-{$config_item['end']}" data-time_no = "{$config_item['time_no']}" data-select_count = "{$classes['select_count']}" data-id="{$school['school_id']}_{$classes['classes_id']}_{$data_item['w']}_{$config_item['time_no']}" value="1">
                                </div>
                            </div>
                            {/foreach}
                            {/foreach}
                        </div>

                        {/foreach}
                    </div>
                </div>

            </div>

        </div>
    </div>
    {/foreach}
</div>
    {else/}
暂无可选数据
    {/if}




<div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button  class="btn btn-primary  confirm">{:__('OK')}</button>
        </div>
    </div>
</DIV>
